package avicit.bdp.dds.dao.entity;

import avicit.bdp.common.base.BaseDTO;
import avicit.platform6.core.annotation.log.Id;
import io.swagger.annotations.ApiModel;

import javax.persistence.Column;
import javax.persistence.Table;

@ApiModel(value = "ProjectTable", description = "bdp_dds_r_project_table")
@Table(name = "bdp_dds_r_project_table")
public class ProjectTable extends BaseDTO {


    public static Integer IMPORTED_NEW = 0;//新建

    public static Integer IMPORTED_DATABASE = 2;//数据库导入

    public static Integer IMPORTED_COMMON = 1;//公共模型导入

    /**
     * id
     */
    @Id
    @javax.persistence.Id
    @Column(name = "id")
    private String id;

    @Column(name = "project_id")
    private String projectId;

    @Column(name = "table_id")
    private String tableId;

    @Column(name = "type_id")
    private String typeId;

    @Column(name = "imported")
    private Integer imported;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }


    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public Integer getImported() {
        return imported;
    }

    public void setImported(Integer imported) {
        this.imported = imported;
    }

    @Override
    public String toString() {
        return "ProjectUser{" +
                "id=" + id +
                ", projectId=" + projectId +
                ", tableId=" + tableId +
                ", typeId='" + typeId + '\'' +
                '}';
    }
}
